package com.njtoyo.taxi.admin.mapper.master.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

public enum SimpleCallState {
    nopick(0, "叫车等待中"),
    pick(1, "司机已接单"),
    cancelled(2, "自主取消"),
    covered(3, "系统取消"),
    cancel_admin(4, "管理员取消");

    @EnumValue
    private final int code;
    private final String desc;

    SimpleCallState(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }
}
